package com.yl.auth.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.entity.HugongLaoren;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yl.auth.entity.Yaopin;
import com.yl.auth.model.entity.Laoren;
import com.yl.auth.model.vo.LaorenVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yl
 * @since 2023-06-16
 */
public interface HugongLaorenMapper extends BaseMapper<HugongLaoren> {

    Page<LaorenVo> findAllConn(Page<LaorenVo> page1, @Param("name") String name,@Param("dengjiTime") String dengjiTime);



    @Delete("delete from hugong_laoren where id=#{id}")
    void remove(Integer id);

    List<LaorenVo> getByIdList(@Param("id") Integer id,@Param("hugongLaoren") HugongLaoren hugongLaoren);

    List<Yaopin> getYaopin(@Param("id")Long id);

    List<LaorenVo> getCunyao(@Param("id")Integer id);


    HugongLaoren getLaoren(Long id);

    List<LaorenVo> getyaopin(Long id);

    LaorenVo getcunshang(@Param("id") Integer id);

    HugongLaoren getjilu(@Param("id")Integer id);
}
